package com.dotlink.appuser.dao;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.dotlink.appuser.entity.UserInfo;
import com.dotlink.common.dao.IMybatisDao;
import com.dotlink.frame.utils.page.Pagination;

@Repository
public interface UserInfoDao extends IMybatisDao<UserInfo, Long> {

	UserInfo queryUserInfo(@Param("user") UserInfo user) throws SQLException;
	
	Integer updateUser(UserInfo user) throws SQLException;

	Integer saveUser(UserInfo user) throws SQLException;

	List<UserInfo> listPageUser(@Param("user") UserInfo user, @Param("pagination") Pagination pagination)
			throws SQLException;

}
